package com.example.wacoffee_manage.Service.Impl;

import com.example.wacoffee_manage.Mapper.storeMapper;
import com.example.wacoffee_manage.Service.storeService;
import com.example.wacoffee_manage.pojo.Store;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class storeServiceImpl implements storeService {

    @Autowired
    private storeMapper storeMapper;
    @Override
    public List<Store> getAll() {
        return storeMapper.getAll();
    }

    @Override
    public void add(Store store) {
        storeMapper.add(store);
    }

    @Override
    public Store getById(int id) {
        return storeMapper.getById(id);
    }

    @Override
    public void update(Store store) {
        storeMapper.update(store);
    }

    @Override
    public void delete(int id) {
        storeMapper.delete(id);
    }
}
